package com.facefun.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

import com.facefun.Enum.StateCode;
import com.facefun.co.ChaptorCo;
import com.facefun.domain.Chaptor;

public interface ChaptorService extends IService<Chaptor>{

	ChaptorCo getChaptorCoByKey(Object ctId,Object cpId);
	
	Map<String,Object> getChaptorList(Integer id,Integer offset,Integer limit);
	
	int addChaptor(Chaptor chaptor,MultipartFile[] files,HttpServletRequest request);

	int updateChaptor(Chaptor chaptor, MultipartFile[] files, HttpServletRequest request);

	StateCode removeChaptor(Chaptor chaptor,HttpServletRequest request);
}
